<?php

namespace App\Library;

class Config
{
    public static $data;

    public static function setData(array $data = []): void
    {
        self::$data = $data;
    }

    public static function set(string $key = '', $default = '')
    {
        return Arr::set(self::$data, $key, $default);
    }

    public static function get(string $key = '', $default = ''): string
    {
        return Arr::get(self::$data, $key, $default) ?? '';
    }
}
